Split #2: parser/reader separation
PATCH 1/1 Split #2: parser/reader separation
Hi,
This patch moves the parser from normal.mod to script/sh, it also split rescue mode to rescue_reader and rescue_parser.
dynamic command support and auto fs loader is moved to standalone source file normal/dyncmd.c and normal/autofs.c.
Signature · 1 line
Bean
Hi,
ping ?
Quoted 11 lines · Bean
Hi,
This patch moves the parser from normal.mod to script/sh, it also split rescue mode to
rescue_readerandrescue_parser.dynamic command support and auto fs loader is moved to standalone source file
normal/dyncmd.candnormal/autofs.c.--
Bean
Signature · 1 line
Bean
Hello. Could you say how it influences the size of kernel and also write a changlog? I looked at it and it seems to be ok but I'm not sure that I haven't missed few files between moved functions. I haven't tested the patch yet
Quoted 28 lines · Bean
Hi,
ping ?
Quoted 11 lines · Bean
Hi,
This patch moves the parser from normal.mod to script/sh, it also split rescue mode to
rescue_readerandrescue_parser.dynamic command support and auto fs loader is moved to standalone source file
normal/dyncmd.candnormal/autofs.c.--
Bean--
Bean_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Hello this patch breaks grub-emu. Also some files include grub/rescue.h and this has to be fixed.
Also there is a bug is that in case of syntax error reader continues to ask for more lines. E.g
grub> if
Quoted 1 line
;
syntax error
Quoted 1 line
Then it's impossible to exit from this "bug mode". It's not your fault but since you touch this code could you fix this?
This patch increases the size of kernel by 504 bytes and the size of core.img by 224 bytes. Is there a way to do the same thing in a more compact way?
Also it would be good to write the current parser in "grub>" prompt (not necessary for rescue prompt)
Quoted 17 lines · Bean
Hi,
This patch moves the parser from normal.mod to script/sh, it also split rescue mode to
rescue_readerandrescue_parser.dynamic command support and auto fs loader is moved to standalone source file
normal/dyncmd.candnormal/autofs.c.--
Bean_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Quoted 2 lines · Vladimir 'phcoder' Serbinenko
Hello this patch breaks grub-emu. Also some files include
grub/rescue.hand this has to be fixed.
Hi,
For large patch, I normally add only the necessary changes to make it compile in i386-pc. As commits are quite frequent, this would minimize the effort to sync with svn head. I'd fix those small issue before final commitment.
Quoted 8 lines
Also there is a bug is that in case of syntax error reader continues to ask for more lines. E.g
grub> ifQuoted 1 line
;
syntax error
Quoted 1 line
Then it's impossible to exit from this "bug mode". It's not your fault but since you touch this code could you fix this?
I believe a proper way to solve this is to add an eol character, for example ctrl-D. Then we have a way to break from console input. But this fix is not trivial, perhaps it should be in a separate patch.
Quoted 3 lines
This patch increases the size of kernel by 504 bytes and the size of core.img by 224 bytes. Is there a way to do the same thing in a more compact way?
Oh, I think it is quite compact already, have you got any suggestion to reduce its size ?
Quoted 2 lines
Also it would be good to write the current parser in "grub>" prompt (not necessary for rescue prompt)
Good point.
Signature · 1 line
Bean
Quoted 4 lines · Bean
Quoted 1 line · Vladimir 'phcoder' Serbinenko
Hello this patch breaks grub-emu. Also some files include
grub/rescue.hand
Quoted 9 lines
Quoted 1 line
this has to be fixed.
Hi,
For large patch, I normally add only the necessary changes to make it compile in i386-pc. As commits are quite frequent, this would minimize the effort to sync with svn head. I'd fix those small issue before final commitment.
Ok. However a Changlog would simplify the review because then it would be easy to see which parts are newly written and which is just code moving around
Quoted 8 lines
Quoted 2 lines
Also there is a bug is that in case of syntax error reader continues to
ask
Quoted 5 lines
for more lines. E.g
grub> ifQuoted 1 line
;
syntax error
Quoted 1 line
Quoted 8 lines
Quoted 1 line
Then it's impossible to exit from this "bug mode". It's not your fault
but
Quoted 1 line
since you touch this code could you fix this?
I believe a proper way to solve this is to add an eol character, for example ctrl-D. Then we have a way to break from console input. But this fix is not trivial, perhaps it should be in a separate patch.
Ok
Quoted 9 lines
Quoted 3 lines
This patch increases the size of kernel by 504 bytes and the size of core.img by 224 bytes. Is there a way to do the same thing in a more
compact
Quoted 1 line
way?
Oh, I think it is quite compact already, have you got any suggestion to reduce its size ?
I'll have a look at it again today or tomorrow
Quoted 15 lines
Quoted 3 lines
Also it would be good to write the current parser in "grub>" prompt (not necessary for rescue prompt)
Good point.
--
Bean_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Patch looks fine for me. I think you can commit it
As for lua put the origin clearly and put the original copyright notice below grub's one. Tomorrow I'll do the same for freebsd64 patch and will merge it
Quoted 4 lines
Oh, I think it is quite compact already, have you got any suggestion
Quoted 2 lines
to reduce its size ?
The only possibility I've seen is to move
grub_parser_executeout of
kernel. However I don't think it's practicable.
Quoted 23 lines
Quoted 7 lines
Quoted 4 lines
Also it would be good to write the current parser in "grub>" prompt (not necessary for rescue prompt)
Good point.
Quoted 9 lines
--
Bean_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel--
Regards
Vladimir 'phcoder' Serbinenko
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Hi,
Thanks for the review, commit it now.
Quoted 45 lines · Vladimir 'phcoder' Serbinenko
Patch looks fine for me. I think you can commit it
As for lua put the origin clearly and put the original copyright notice below grub's one. Tomorrow I'll do the same for freebsd64 patch and will merge itQuoted 3 lines
Quoted 3 lines
Oh, I think it is quite compact already, have you got any suggestion to reduce its size ?
The only possibility I've seen is to move
grub_parser_executeout of kernel. However I don't think it's practicable.Quoted 19 lines
Quoted 8 lines
Quoted 5 lines
Also it would be good to write the current parser in "grub>" prompt (not
necessary for rescue prompt)Good point.
Quoted 8 lines
--
Bean_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-develQuoted 3 lines
--
Regards
Vladimir 'phcoder' Serbinenko--
Regards
Vladimir 'phcoder' Serbinenko_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 1 line
Bean